
//
// 110320 - AH - Created.
//

package org.soekrat.engine.swnetwork;

/**
 * <p>
 *   Interface for objects that calculate means for a node's edge's weightd in a  
 *   {@link SpareWheelNetwork}.
 * </p>
 * @author Arne Halvorsen (AH)
 * @author Laetitia Le Chatton (LLC)  
 */
public interface NodeMeanCalculator 
{
  /**
   * <p>
   *   Calculate mean.
   * </p>
   * @param g    Weighted graph node is in.
   * @param node Node to calculate weight for.
   * @return Calculated weight.
   */
  double calculate(SpareWheelNetwork network, SpareWheelNetworkNode node);
  
}
